#!/bin/bash
#Program:
#	This program shows "Hello World!" in your screen.
#History:
#20171113	zhouxh	v1
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH

# 加上-n可以不断行继续在同一行显示
function printit(){
	echo -n "Your choice is "	# 加上-n可以不断行继续在同一行显示
}

echo "This program will print your selection !"
case ${1} in
	"one")
	printit; echo ${1} | tr 'a-z' 'A-Z'
	;;
	"two")
	printit; echo ${1} | tr 'a-z' 'A-Z'	# 将参数做大小写转换！
	;;
	"three")
	printit; echo ${1} | tr 'a-z' 'A-Z'	# 将参数做大小写转换！
	;;
	*)
	echo "Usage ${0} {one|two|three}"
	;;
esac
